// @ts-ignore
/* eslint-disable */
import request from '@/utils/request.ts'

/** 此处后端没有提供注释 POST /collect/add/${param0} */
export async function addCollectFolder(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addCollectFolderParams,
  options?: { [key: string]: any }
) {
  const { name: param0, ...queryParams } = params
  return request<API.BaseResponseObject>(`/collect/add/${param0}`, {
    method: 'POST',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 DELETE /collect/delete/${param0} */
export async function deleteFolder(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteFolderParams,
  options?: { [key: string]: any }
) {
  const { id: param0, ...queryParams } = params
  return request<API.BaseResponseObject>(`/collect/delete/${param0}`, {
    method: 'DELETE',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 获取用户收藏夹 GET /collect/list */
export async function listByUserId1(options?: { [key: string]: any }) {
  return request<API.BaseResponseObject>('/collect/list', {
    method: 'GET',
    ...(options || {}),
  })
}
